From: Daniel van Vugt Date: Tue, 14 Mar 2023 09:35:34 +0000 (+0800) Subject: appDisplay: Avoid using an undefined _swipeTracker X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~94 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b8013704cffbdedd2f82bcf38a556c6a74754615;p=gnome-shell.git appDisplay: Avoid using an undefined _swipeTracker It might have been deleted already during shutdown by `_onDestroy()`. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6512 Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 17afb899d..75a458f7b 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1237,7 +1237,8 @@ var BaseAppView = GObject.registerClass({ } vfunc_unmap() { - this._swipeTracker.enabled = false; + if (this._swipeTracker) + this._swipeTracker.enabled = false; this._disconnectDnD(); super.vfunc_unmap(); }